package org.particlethink.model;

import org.particlethink.entry.OrderStatus;
import org.particlethink.handler.OrderStatusHandler;
import tk.mybatis.mapper.annotation.ColumnType;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;

public class Blog {
    @Id
    @KeySql(useGeneratedKeys = true)
    @ColumnType(typeHandler = OrderStatusHandler.class)
    private OrderStatus id;
    private String title;
    private String content;

    public OrderStatus getId() {
        return id;
    }

    public void setId(OrderStatus id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "Blog{" +
            "id=" + id +
            ", title='" + title + '\'' +
            ", content='" + content + '\'' +
            '}';
    }
}
